local skel = fk.CreateSkill {
  name = "#efengqi__guicai_select",
}

skel:addEffect("active", {
  card_filter = function (self, player, to_select, selected, selected_targets)
    return #selected == 0 and not player:prohibitResponse(Fk:getCardById(to_select))
  end,
  target_filter = function (self, player, to_select, selected, selected_cards, card, extra_data)
    return #selected == 0 and #selected_cards == 0 and not to_select:isNude() and to_select ~= player
  end,
  feasible = function (self, player, selected, selected_cards, card)
    return (#selected == 0 and #selected_cards == 1) or (#selected == 1 and #selected_cards == 0)
  end,
})

return skel
